'use strict';

module.exports = {
  up: async (queryInterface, Sequelize) => {
    /**
     * Add altering commands here.
     *
     * Example:
     * await queryInterface.createTable('users', { id: Sequelize.INTEGER });
     */
     const DataTypes = Sequelize;
     await queryInterface.createTable('productcatinfo', {
         pid: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
         product_title: DataTypes.STRING(256),
         category_id: DataTypes.INTEGER,
         category_title: DataTypes.STRING(256),
         sort:DataTypes.INTEGER,
         description: DataTypes.STRING(256),
         title:DataTypes.STRING(256),
         introduction:DataTypes.STRING(256),
       });
  },

  down: async (queryInterface, Sequelize) => {
    /**
     * Add reverting commands here.
     *
     * Example:
     * await queryInterface.dropTable('users');
     */
  }
};
